<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
</head>
<body>
    <h1 th:text="${msg}">大家好</h1>

<h1>
    欢迎您：<span th:text="${user.name}">请登录</span>
</h1>
</body>
</html>